package com.knowif.dao;

import com.knowif.pojo.UserChat;
import com.knowif.pojo.UserChatExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserChatMapper {
    int countByExample(UserChatExample example);

    int deleteByExample(UserChatExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserChat record);

    int insertSelective(UserChat record);

    List<UserChat> selectByExample(UserChatExample example);

    UserChat selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UserChat record, @Param("example") UserChatExample example);

    int updateByExample(@Param("record") UserChat record, @Param("example") UserChatExample example);

    int updateByPrimaryKeySelective(UserChat record);

    int updateByPrimaryKey(UserChat record);

    List<UserChat> selectByParendId(Integer parentId);

    List<UserChat> selectByOrderUserType(@Param("parentId") Integer parentId,@Param("userOrderId") Integer userOrderId,@Param("userId") Integer userId);

    List<UserChat> selectByOrderId(@Param("userOrderId") Integer userOrderId);

}